package cate.common.table.activity.customwarorder.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.customwarorder.row.CustomWarorderChooseRow;

import java.util.List;
import java.util.stream.Collectors;

public class CustomWarorderChooseSheet extends ESheet<CustomWarorderChooseRow> {
    @Override
    public String getSheetName() {
        return "自选池";
    }

    public List<CustomWarorderChooseRow> getRows(int group) {
        return getList().stream().filter(e -> e.group == group).collect(Collectors.toList());
    }
}
